﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XWG.JWBST.ProcessInterfaces;
using System.IO;
using System.Web;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;

namespace XWG.JWBST.UpdateProcess
{
    /// <summary>
    /// 数据升级
    /// </summary>
    public class Process : IProcess
    {
        public string ProcessData(StreamReader reader, HttpContext context)
        {
            //读取提交数据并UrlDecode解码
            string receivemes = HttpUtility.UrlDecode(reader.ReadToEnd());
            string json = string.Empty;
            //反序列化json对象    
            JObject ob = (JObject)JsonConvert.DeserializeObject(receivemes);
            DateTime lasttime = Convert.ToDateTime(ob["lasttime"].ToString().Replace("\"", string.Empty));
            return "";
            
        }
    }
}
